import React, { Component } from 'react';
import { hashHistory } from 'react-router';
import './homeNav.less';

class HomeNav extends Component{
	
	gotoSearch = () => {
		hashHistory.push("/search");
	}
	
	render(){
		return(
			<div className="home_nav">
				<div className="home_nav_right fr">
					<img src="assets/img/tools.png"/>
				</div>
				<div className="home_nav_content" onClick={this.gotoSearch}>
					<div>
						<img src="assets/img/search.png"/>
						<span>搜索内容</span>
					</div>
				</div>
			</div>
		)
	}
}

export default HomeNav;